<%- include('layouts/head.ejs', { pageConf })%>

<%- include('common/nav.ejs')%>

<div class="container" style="padding: 10px; display: inline-block;">
  <h1>添加题目</h1>
  <form action="/admin/add-problem" method="post">
    <% pageConf.inputFiled.forEach((item, index) => { %>
      <label for="" style="display: inline-block; margin-right: 10px;"><%= item.title%></label>
      <input type="text" placeholder="<%= item.title %>" name="<%= item.name%>"/>
      <hr />
    <% }) %>
    <input type="submit" value="提交" />
    <input type="reset" value="重置" />
  </form>
  <div>
    <h3>目前的题目类型及id，请填入对应类型的id</h3>
    <p>
      <% problemTypes.forEach(item => { %>
        <%= item.id %>
        <%= item.type_title%>
      <% }) %>
    </p>
  </div>
  
</div>

<%- include('layouts/foot.ejs', { pageConf })%>